//
//  DHLeftBarTopView.m
//  DHKuaiYi
//
//  Created by Cedric Zheng on 13/11/2016.
//  Copyright © 2016 30-陈辉华. All rights reserved.
//

#import "DHLeftBarTopView.h"
#import <Masonry.h>

@implementation DHLeftBarTopView

#pragma mark - Life Cycle

#pragma mark - Events

- (void)xhhSetupSubviews {
    
    self.backgroundColor = [UIColor globalColor];
    
    //头像图片
    UIImageView *imgV = [UIImageView new];
    imgV.backgroundColor = [UIColor blueColor];
    [self addSubview:imgV];
    
    [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.width.equalTo(self.mas_height).multipliedBy(0.6);
        make.top.equalTo(self).offset(25);
        make.leading.equalTo(self).offset(12);
    }];
    
    //用户名
    UILabel *userNameLabel = [UILabel new];
    userNameLabel.backgroundColor = [UIColor blueColor];
    userNameLabel.text = @"ahahaha";
    [self addSubview:userNameLabel];
    
    [userNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(imgV);
        make.leading.equalTo(imgV.mas_trailing).offset(8);
    }];
    
    //基本资料信息
    UILabel *basicInfoLabel = [UILabel new];
    basicInfoLabel.backgroundColor = [UIColor blueColor];
    basicInfoLabel.text = @"ohohoho";
    [self addSubview:basicInfoLabel];
    
    [basicInfoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(imgV);
        make.leading.equalTo(imgV.mas_trailing).offset(8);
    }];
    
    
    
    
}

#pragma mark – Private Methods

#pragma mark - <#Delegates#>

#pragma mark - <#Datasources#>

#pragma mark – Getters and Setters

@end
